<?php
   require_once('nusoap/nusoap.php');
   require_once('roles.php');

   $server = new nusoap_server();
   //PerfilTable
   $server->register('perfiltable_fetchAll');
   $server->register('getPerfil');
   $server->register('insertPerfil');
   $server->register('updatePerfil');
   $server->register('deletePerfil');
   $server->register('getPerfilesByUsuario');
   //PermisoTable
   $server->register('permisotable_fetchAll');
   $server->register('getPermiso');
   $server->register('insertPermiso');
   $server->register('updatePermiso');
   $server->register('deletePermiso');
   $server->register('getPermisosByPerfil');
   //PerfilXPermisoTable
   $server->register('perfilxpermisotable_fetchAll');
   $server->register('getPerfilXPermiso');
   $server->register('insertPerfilXPermiso');
   $server->register('updatePerfilXPermiso');
   $server->register('deletePerfilXPermiso');
   //UsuarioXPerfilTable
   $server->register('usuarioxperfiltable_fetchAll');
   $server->register('getUsuarioXPerfil');
   $server->register('insertUsuarioXPerfil');
   $server->register('updateUsuarioXPerfil');
   $server->register('deleteUsuarioXPerfil');

   $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
   $server->service($HTTP_RAW_POST_DATA);
?>
